<?
$section = $args->section;
$section_data = $args->section_data;

if($position_table = $config->tables[$section['position_table']]['table'])
{
    $table = new Table($position_table);
    $items = $table->select('select * from `'.$position_table.'` where section_id=:section_id order by sort',
        array(
            'section_id'=>$section['id']
        )
    );
}
?>
<section id="<?=$args->section['alias']?>">
    <div class="main-block center">
        <h2><?=$section_data['name']?></h2>
        <div class="shop-wrap">
            <div class="gallery shop">
                <?foreach($items as $item){?>
                <div class="photo-block">
                    <a href="<?=$item['img']?>" rel="robotsphotos_<?=$section['id']?>"><img src="<?=get_cache_pic($item['img'],210,210,false)?>"></a>
                    <div class="vacuum-desc">
                        <span><?=$item['name']?></span>
                        <?=$item['description']?>
                    </div>
                    <div class="price">
                        <?=number_format($item['price'],0,'','&nbsp;')?> <?=$section_data['price']?$section_data['price']:'<div class="rouble">Р</div>'?>
                    </div>
                </div>
                <?}?>
            </div>
            <div  class="shop-back"></div>
            <div  class="shop-forward"></div>
        </div>

    </div>
</section>



